package Object.fanxi;

/**
 * @author haomin
 * @date 2022/11/12 17:09
 **/
public class Demo1 {
    public static void main(String[] args) {
        MyArray<Number> myArray = new MyArray();
        MyArray<Integer> myArray1 = new MyArray<>();
    }
}

class MyArray<E> {
    // 类型擦除为 Object
}

class MyArray2<E extends Number> {
    // 类型擦除为 Number
}

class MyArray3<E extends Comparable<E>> {
    // 类型擦除为 Comparable
}
